package com.buaa.aimall.userModule.Converter;

import com.buaa.aimall.userModule.DTO.RegisterDTO;
import com.buaa.aimall.userModule.Entity.UserEntity;
import com.buaa.aimall.userModule.VO.UserVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface UserConvert {
    UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);

    UserEntity registerDTOToEntity(RegisterDTO registerDTO);

    UserVO userEntityToVO(UserEntity userEntity);
}
